package com.mobilereports.sort;

import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;

import com.mobilereports.model.Sample;

public class ComparatorManager
{
	private LinkedList<Comparator<Sample>> list = 
		new LinkedList<Comparator<Sample>>();
	
	private static ComparatorManager instance = new ComparatorManager();

	private ComparatorManager()
	{
		list.add(new ValuesDescendingComparator());
		list.add(new ValuesAscendingComparator());
		list.add(new NamesDescendingComparator());
		list.add(new NamesAscendingComparator());
	}
	
	public static ComparatorManager getInstance()
	{
		return instance;
	}
	
	public List<Comparator<Sample>> getComparators()
	{
		return list;
	}
}
